package com.jxc.model.vo;

import java.io.Serializable;
import java.util.Date;

public class VGoods implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 3494588527180088994L;

	private String ids;
	private Long bid;
	private String bname;
	private Long gtid;
	private String gtname;
	private Long did;
	private Double discountNum;
	private Long rid;
	private String rname;
	private Double total;
	private int page;// 当前页
	private int rows;// 每页显示记录数
	private String sort;// 排序字段名
	private String order;// 按什么排序(asc,desc)

	private Long id;
	private String barcode;
	private String type;
	private String name;
	private String unit;
	private String color;
	private String size;
	private Double showPrice;
	private Double salePrice;
	private Double buyPrice;
	private String remark;
	private Double price1;
	private Double price2;
	private Double price3;
	private Integer amount;
	private Boolean isDelete;
	private Date lastedSaleTime;

	private Integer initAmount;
	private Integer orderTotal;
	private Integer orderReturnTotal;
	private Integer saleTotal;
	private Integer saleReturnTotal;
	private Integer damageTotal;
	private Integer transferTotal;
	private Integer repertoryTotal;

	public Double getBuyPrice() {
		return buyPrice;
	}

	public void setBuyPrice(Double buyPrice) {
		this.buyPrice = buyPrice;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Double getPrice1() {
		return price1;
	}

	public void setPrice1(Double price1) {
		this.price1 = price1;
	}

	public Double getPrice2() {
		return price2;
	}

	public void setPrice2(Double price2) {
		this.price2 = price2;
	}

	public Double getPrice3() {
		return price3;
	}

	public void setPrice3(Double price3) {
		this.price3 = price3;
	}

	public Integer getAmount() {
		return amount;
	}

	public void setAmount(Integer amount) {
		this.amount = amount;
	}

	public Boolean getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Boolean isDelete) {
		this.isDelete = isDelete;
	}

	public Date getLastedSaleTime() {
		return lastedSaleTime;
	}

	public void setLastedSaleTime(Date lastedSaleTime) {
		this.lastedSaleTime = lastedSaleTime;
	}

	public String getBarcode() {
		return barcode;
	}

	public void setBarcode(String barcode) {
		this.barcode = barcode;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public String getSize() {
		return size;
	}

	public void setSize(String size) {
		this.size = size;
	}

	public Double getShowPrice() {
		return showPrice;
	}

	public void setShowPrice(Double showPrice) {
		this.showPrice = showPrice;
	}

	public Double getSalePrice() {
		return salePrice;
	}

	public void setSalePrice(Double salePrice) {
		this.salePrice = salePrice;
	}

	public String getIds() {
		return ids;
	}

	public void setIds(String ids) {
		this.ids = ids;
	}

	public Long getGtid() {
		return gtid;
	}

	public void setGtid(Long gtid) {
		this.gtid = gtid;
	}

	public String getGtname() {
		return gtname;
	}

	public void setGtname(String gtname) {
		this.gtname = gtname;
	}

	public Long getDid() {
		return did;
	}

	public void setDid(Long did) {
		this.did = did;
	}

	public Double getDiscountNum() {
		return discountNum;
	}

	public void setDiscountNum(Double discountNum) {
		this.discountNum = discountNum;
	}

	public Long getRid() {
		return rid;
	}

	public void setRid(Long rid) {
		this.rid = rid;
	}

	public String getRname() {
		return rname;
	}

	public void setRname(String rname) {
		this.rname = rname;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getRows() {
		return rows;
	}

	public void setRows(int rows) {
		this.rows = rows;
	}

	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}

	public Long getBid() {
		return bid;
	}

	public void setBid(Long bid) {
		this.bid = bid;
	}

	public String getBname() {
		return bname;
	}

	public void setBname(String bname) {
		this.bname = bname;
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public Double getTotal() {
		if (total != null) {
			return total;
		} else if (amount == null || showPrice == null) {
			total = 0.0;
		} else {
			total = amount * showPrice;
		}
		return total;
	}

	public void setTotal(Double total) {
		this.total = total;
	}

	public Integer getInitAmount() {
		return initAmount;
	}

	public void setInitAmount(Integer initAmount) {
		this.initAmount = initAmount;
	}

	public Integer getOrderTotal() {
		return orderTotal;
	}

	public void setOrderTotal(Integer orderTotal) {
		this.orderTotal = orderTotal;
	}

	public Integer getOrderReturnTotal() {
		return orderReturnTotal;
	}

	public void setOrderReturnTotal(Integer orderReturnTotal) {
		this.orderReturnTotal = orderReturnTotal;
	}

	public Integer getSaleTotal() {
		return saleTotal;
	}

	public void setSaleTotal(Integer saleTotal) {
		this.saleTotal = saleTotal;
	}

	public Integer getSaleReturnTotal() {
		return saleReturnTotal;
	}

	public void setSaleReturnTotal(Integer saleReturnTotal) {
		this.saleReturnTotal = saleReturnTotal;
	}

	public Integer getDamageTotal() {
		return damageTotal;
	}

	public void setDamageTotal(Integer damageTotal) {
		this.damageTotal = damageTotal;
	}

	public Integer getTransferTotal() {
		return transferTotal;
	}

	public void setTransferTotal(Integer transferTotal) {
		this.transferTotal = transferTotal;
	}

	public Integer getRepertoryTotal() {
		return repertoryTotal;
	}

	public void setRepertoryTotal(Integer repertoryTotal) {
		this.repertoryTotal = repertoryTotal;
	}

}